import 'package:base_lib/app.dart';
import 'package:base_lib/common/bus/ibus.dart';
import 'package:base_lib/config.dart';
import 'package:base_lib/router/page_builder.dart';
import 'package:doctor_user_lib/repository/https.dart';
import 'package:doctor_user_lib/setting/setting_page.dart';

class DoctorUserComponent extends IComponent {
  static String setSettingPage = "/setSettingPage";

  @override
  void doComponentInitConfig() {
    DoctorUserHttp.createHttpProxy(mBaseUrl: Config.loginBaseUrl);
  }

  @override
  List<EventBuilder> gePublicEvents() {
    return [];
  }

  @override
  getComponentName() {
    return "DoctorUserComponent";
  }

  @override
  List<PageBuilder> getPages() {
    return [
      PageBuilder(setSettingPage, (parameters) {
        return SettingPage(parameters);
      })
    ];
  }
}
